home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / ScreenSavers / BackSpaceViews / AquariumView.BackModule / wraps.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  4.0 KB  |  138 lines

  1. /* wraps.c generated from wraps.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "wraps.psw"
  9. #line 10 "wraps.c"
  10. void PSW_transformToFit(Rot, angle, w, h)
  11. int Rot; int angle; float w; float h; 
  12. {
  13.   typedef struct {
  14.     unsigned char tokenType;
  15.     unsigned char topLevelCount;
  16.     unsigned short nBytes;
  17.  
  18.     DPSBinObjReal obj0;
  19.     DPSBinObjGeneric obj1;
  20.     DPSBinObjGeneric obj2;
  21.     DPSBinObjGeneric obj3;
  22.     DPSBinObjReal obj4;
  23.     DPSBinObjGeneric obj5;
  24.     DPSBinObjGeneric obj6;
  25.     DPSBinObjGeneric obj7;
  26.     DPSBinObjGeneric obj8;
  27.     DPSBinObjGeneric obj9;
  28.     DPSBinObjGeneric obj10;
  29.     DPSBinObjGeneric obj11;
  30.     DPSBinObjGeneric obj12;
  31.     DPSBinObjGeneric obj13;
  32.     DPSBinObjGeneric obj14;
  33.     DPSBinObjGeneric obj15;
  34.     DPSBinObjGeneric obj16;
  35.     } _dpsQ;
  36.   static _dpsQ _dpsF = {
  37.     DPS_DEF_TOKENTYPE, 17, 140,
  38.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: w */
  39.     {DPS_LITERAL|DPS_INT, 0, 0, 2},
  40.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54},    /* div */
  41.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56},    /* dup */
  42.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: h */
  43.     {DPS_LITERAL|DPS_INT, 0, 0, 2},
  44.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54},    /* div */
  45.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56},    /* dup */
  46.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173},    /* translate */
  47.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: angle */
  48.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 136},    /* rotate */
  49.     {DPS_LITERAL|DPS_INT, 0, 0, -1},
  50.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108},    /* mul */
  51.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62},    /* exch */
  52.     {DPS_LITERAL|DPS_INT, 0, 0, -1},
  53.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108},    /* mul */
  54.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173},    /* translate */
  55.     }; /* _dpsQ */
  56.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  57.   char pad[3];
  58.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  59.  
  60.   _dpsP[9].val.integerVal = angle;
  61.   _dpsP[0].val.realVal = w;
  62.   _dpsP[4].val.realVal = h;
  63.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,140);
  64.   if (0) *pad = 0;    /* quiets compiler warnings */
  65. }
  66. #line 7 "wraps.psw"
  67.  
  68. #line 69 "wraps.c"
  69. void PSW_flipHor(w, h)
  70. float w; float h; 
  71. {
  72.   typedef struct {
  73.     unsigned char tokenType;
  74.     unsigned char topLevelCount;
  75.     unsigned short nBytes;
  76.  
  77.     DPSBinObjReal obj0;
  78.     DPSBinObjGeneric obj1;
  79.     DPSBinObjGeneric obj2;
  80.     DPSBinObjGeneric obj3;
  81.     DPSBinObjGeneric obj4;
  82.     DPSBinObjGeneric obj5;
  83.     } _dpsQ;
  84.   static _dpsQ _dpsF = {
  85.     DPS_DEF_TOKENTYPE, 6, 52,
  86.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: w */
  87.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  88.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173},    /* translate */
  89.     {DPS_LITERAL|DPS_INT, 0, 0, -1},
  90.     {DPS_LITERAL|DPS_INT, 0, 0, 1},
  91.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 139},    /* scale */
  92.     }; /* _dpsQ */
  93.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  94.   char pad[3];
  95.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  96.  
  97.   _dpsP[0].val.realVal = w;
  98.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,52);
  99.   if (0) *pad = 0;    /* quiets compiler warnings */
  100. }
  101. #line 12 "wraps.psw"
  102.  
  103. #line 104 "wraps.c"
  104. void PSW_flipVer(w, h)
  105. float w; float h; 
  106. {
  107.   typedef struct {
  108.     unsigned char tokenType;
  109.     unsigned char topLevelCount;
  110.     unsigned short nBytes;
  111.  
  112.     DPSBinObjGeneric obj0;
  113.     DPSBinObjReal obj1;
  114.     DPSBinObjGeneric obj2;
  115.     DPSBinObjGeneric obj3;
  116.     DPSBinObjGeneric obj4;
  117.     DPSBinObjGeneric obj5;
  118.     } _dpsQ;
  119.   static _dpsQ _dpsF = {
  120.     DPS_DEF_TOKENTYPE, 6, 52,
  121.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  122.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: h */
  123.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173},    /* translate */
  124.     {DPS_LITERAL|DPS_INT, 0, 0, 1},
  125.     {DPS_LITERAL|DPS_INT, 0, 0, -1},
  126.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 139},    /* scale */
  127.     }; /* _dpsQ */
  128.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  129.   char pad[3];
  130.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  131.  
  132.   _dpsP[1].val.realVal = h;
  133.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,52);
  134.   if (0) *pad = 0;    /* quiets compiler warnings */
  135. }
  136. #line 17 "wraps.psw"
  137.  
  138.